#include <bits/stdc++.h>
#define N 100050
using namespace std;
int T;
int n;
int a[N],p[N],h[100050],sum[N];
int temp[N];
void(int x,int s);{
    if(x==n)
        ans max(ans n);
        for(int i=1;i<=n;i++)
            cout<<temp[i]<<" ";
            cout<<"/n";
            return ;
}
if(s+sum[x+1]<=ans)return ;
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    cin>>T;
    while(T--){
      scence{h,0,sizef h};
      scence{p,0,sizef p};
      scence{sum,,0,sizef sum};
      ans=-inf;

    for(int i=1;i<=n;i++)
    cin>>a[i];
    p[i]=h[a[i]];
    h[a[i]]=a[i];
}
    if(f){
        cout<<0<<"\n";
        coutune;
    }
    for(i=0;i<=n;i++)
        if(h[a[i]]>a[i]) t=1;
        return 0;
}








